/**
 * 
 */
package tests.board.pieces;

import junit.framework.TestCase;

import org.junit.Test;

import root.board.Piece;
import root.board.pieces.Pawn;

/**
 * @author Calebe
 * 
 */
public class PawnTest extends TestCase {
	private final Pawn peao = new Pawn();

	@Test
	public void testMovedNorthPieceMovimentsAmmount() {

		peao.setTeam(Piece.NORTH);
		assertEquals(3, peao.moviments(3, 3).length);
	}

	@Test
	public void testMovedSouthPieceMovimentsAmmount() {

		peao.setTeam(Piece.SOUTH);
		assertEquals(3, peao.moviments(5, 3).length);
	}

	@Test
	public void testNorthPieceMovimentsAmmount() {
		peao.setTeam(Piece.NORTH);
		assertEquals(3, peao.moviments(1, 3).length);
	}

	@Test
	public void testSouthPieceMovimentsAmmount() {
		peao.setTeam(Piece.SOUTH);
		assertEquals(3, peao.moviments(6, 3).length);
	}

}
